package com.ts.api.module.api.service.impl;

import com.ts.api.module.api.dao.ApiRequiredRuleDao;
import com.ts.api.module.api.entity.po.ApiRequiredRulePO;
import com.ts.api.module.api.entity.qo.ApiRequiredRuleQO;
import com.ts.api.module.api.service.ApiKeyRequiredRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class ApiKeyRequiredRuleServiceImpl implements ApiKeyRequiredRuleService {

    @Autowired
    private ApiRequiredRuleDao apiRequiredRuleDao;

    @Override
    @Transactional(readOnly = true)
    public List<ApiRequiredRulePO> list(ApiRequiredRuleQO apiRequiredRuleQO) {
        return apiRequiredRuleDao.list(apiRequiredRuleQO);
    }
}
